package com.blb.demo1;

/**
 * 单例模式
 * 饿汉式
 */
public class SingletonPattern {

    private static SingletonPattern singletonPattern=new SingletonPattern();
    private SingletonPattern() {
    }

    public static SingletonPattern getBean(){
        return  singletonPattern;
    }
}
